﻿using System.Security.Cryptography.X509Certificates;
using FluentValidation;
using SW.EF.Web.FrameWork.ViewModel.PermissionModule;

namespace SW.EF.Web.FrameWork.ValidationRule.PermissionModule
{
    public class AccountVmValidationRule :  AbstractValidator<AccountVm> 
    {
        public AccountVmValidationRule()
        {
            RuleFor(x => x.Account).NotEmpty().WithMessage("用户名长度为1-20个字符!");
            RuleFor(x => x.Password).NotEmpty().WithMessage("密码长度为1-20个字符!");
        }
    }
}
